﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="hdnlsts.aspx.cs" Inherits="ktskumar.SharePoint.List.Layouts.Settings.hdnlsts" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<table width="100%">
<tr>
		<td class="ms-gb" colspan="5" style="white-space:nowrap;">
						   <h3 class="ms-standardheader">
							  &#160; <SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="Hidden Lists & Libraries" EncodeMethod='HtmlEncode'/>
						   </h3>
		</td>
	</tr>
  
    

     <%       
         DateTime dtCurrent = DateTime.UtcNow;
         string alternatingClass = (null != SPContext.Current.Web && SPContext.Current.Web.UIVersion < 4) ? "ms-alternating" : "ms-alternatingstrong";
    string rowClass = alternatingClass;
    SPListCollection Lists = base.Web.Lists;
         
   
         
    foreach (SPList lst in Lists)
	{
        if (lst.Hidden)
        {
            string destUrl;

            string imageUrl;
            string toolTip;
            Pair webImageData = SPUtility.MapWebToIcon(lst.ParentWeb);
            imageUrl = (string)(webImageData.First);
            toolTip = SPHttpUtility.HtmlEncode((string)(webImageData.Second));

            destUrl = SPHttpUtility.UrlPathEncode(lst.ParentWeb.Url + "/_layouts/Settings/moresetng.aspx?List=" + lst.ID.ToString(), true);
        %>
        
		 <tr class="<%=rowClass%>">
				<td class="ms-vb-icon" >
					  <a id="webIcon" href="<%=destUrl%>"  >
					  <img border="0" alt=<%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(lst.Title),Response.Output);%> src=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(lst.ImageUrl,true),Response.Output);%> width="16" height="16" />
                      </a>
				</td>
				<td class="ms-vb2" >
					  <a id="webUrl" href="<%=destUrl%>">
                      
                      <%SPHttpUtility.HtmlEncode(lst.Title, Response.Output);%>
                      
                      
                      </a>&#160;
				</td>
				<td class="ms-vb2" width="40%" >
					  <%SPHttpUtility.HtmlEncode(lst.Description, Response.Output);%>
				</td>
				<td class="ms-vb2" width="3%"></td>
				<td class="ms-vb2" width="25%" >
					<nobr>
				   <%=SPUtility.TimeDeltaAsString(lst.LastItemModifiedDate, dtCurrent)%>
					</nobr>
				</td>
			</tr>
            <%
}
	}
         %>

         </table>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Application Page
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
My Application Page
</asp:Content>
